export const AFTERSALE_VIEW_STATUS = {
  100: {
    code: 100,
    text: '',
    conditions: [],
    descriptions: [
      { text: '售后已完成', color: '#333' },
    ]
  },
  99: {
    code: 99,
    text: '',
    conditions: [],
    descriptions: [
      { text: '售后已拒绝', color: '#333' },
    ]
  },
  11: {
    code: 11,
    text: '退款详情',
    conditions: [],
    descriptions: [
      { text: '买家发起，', color: '#333', isWrap: true },
      { text: '未发货仅退款', color: '#EA5750' },
      { text: '售后申请', color: '#333' },
    ],
    operations: [
      { text: '拒绝退款', func: 'handleToReject', className: 'danger plain', afterViewCode: 99 },
      { text: '同意退款', func: 'handleRefund', className: 'primary', afterViewCode: 100 },
    ],
    rejectBtns : [
      { text: '取消', func: 'handleBack', className: 'primary plain' },
      { text: '保存', func: 'handleSubmit', className: 'primary' },
    ]
  },
  21: {
    code: 21,
    text: '退货退款详情',
    conditions: [],
    descriptions: [
      { text: '买家发起，', color: '#333' },
      { text: '退货退款', color: '#EA5750' },
      { text: '售后申请', color: '#333' },
    ],
    operations: [
      { text: '拒绝退货', func: 'handleToReject', className: 'danger plain', afterViewCode: 99 },
      { text: '同意退货', func: 'handleShowActionSheet', className: 'primary' },
    ],
    actionsheets: [
      { text: '不退货仅退款', func: 'handleRefund', afterViewCode: 100 },
      { text: '退货退款', func: 'handleDrawback', afterViewCode: 22 },
    ],
    rejectBtns : [
      { text: '取消', func: 'handleBack', className: 'primary plain' },
      { text: '保存', func: 'handleSubmit', className: 'primary' },
    ]
  },
  22: {
    code: 22,
    text: '退货退款详情',
    conditions: [],
    descriptions: [
      { text: '商家已同意', color: '#333' },
      { text: '退货退款，', color: '#EA5750' },
      { text: '待填写退货地址', color: '#333', isWrap: true },
    ],
    operations: [
      { text: '填写退货地址', func: 'handleToAddress', className: 'primary', afterViewCode: 23 },
    ]
  },
  23: {
    code: 23,
    text: '退货退款详情',
    conditions: [],
    descriptions: [
      { text: '等待买家寄回', color: '#333' },
    ],
    operations: [
      { text: '代填运单号', func: 'handleToDelivery', className: 'primary', afterViewCode: 24 },
    ],
    deliveryBtns : [
      { text: '取消', func: 'handleBack', className: 'primary plain' },
      { text: '提交', func: 'handleSubmit', className: 'primary' },
    ]
  },
  24: {
    code: 24,
    text: '退货退款详情',
    conditions: [],
    descriptions: [
      { text: '商品已寄回，待商家签收', color: '#333' },
    ],
    operations: [
      { text: '原返商品', func: 'handleReturnGoods', className: 'danger plain', afterViewCode: 99 },
      { text: '确认收货退款', func: 'handleRefund', className: 'primary', afterViewCode: 100 },
    ]
  },
  31: {
    code: 31,
    text: '换货详情',
    conditions: [],
    descriptions: [
      { text: '买家发起，', color: '#333' },
      { text: '换货', color: '#EA5750' },
      { text: '售后申请', color: '#333' },
    ],
    operations: [
      { text: '拒绝换货', func: 'handleToReject', className: 'danger plain', afterViewCode: 99 },
      { text: '同意换货', func: 'handleExchangeGoods', className: 'primary', afterViewCode: 32 },
    ],
    rejectBtns : [
      { text: '取消', func: 'handleBack', className: 'primary plain' },
      { text: '保存', func: 'handleSubmit', className: 'primary' },
    ]
  },
  32: {
    code: 32,
    text: '换货详情',
    conditions: [],
    descriptions: [
      { text: '商家同意换货，', color: '#333' },
      { text: '待填写', color: '#333' },
      { text: '退货地址', color: '#EA5750', isWrap: true },
    ],
    operations: [
      { text: '填写退货地址', func: 'handleToAddress', className: 'primary', afterViewCode: 33 },
    ]
  },
  33: {
    code: 33,
    text: '换货详情',
    conditions: [],
    descriptions: [
      { text: '等待买家寄回', color: '#333' },
    ],
    operations: [
      { text: '代填运单号', func: 'handleToDelivery', className: 'primary', afterViewCode: 34 },
    ],
    deliveryBtns : [
      { text: '取消', func: 'handleBack', className: 'primary plain' },
      { text: '提交', func: 'handleSubmit', className: 'primary' },
    ]
  },
  34: {
    code: 34,
    text: '换货详情',
    conditions: [],
    descriptions: [
      { text: '商品已寄回，待商家签收', color: '#333' },
    ],
    operations: [
      { text: '同意直接退款', func: 'handleRefund', className: 'danger plain', afterViewCode: 100 },
      { text: '确认收货并发货', func: 'handleRefund', className: 'primary', afterViewCode: 35 },
    ]
  },
  35: {
    code: 35,
    text: '换货详情',
    conditions: [],
    descriptions: [
      { text: '商家已确认收货，待发货', color: '#333' },
    ],
    operations: [
      { text: '确认发货', func: 'handleToDelivery', className: 'primary', afterViewCode: 36 },
    ],
    deliveryBtns : [
      { text: '取消', func: 'handleBack', className: 'primary plain' },
      { text: '确认发货', func: 'handleSubmit', className: 'primary' },
    ]
  },
  36: {
    code: 36,
    text: '换货详情',
    conditions: [],
    descriptions: [
      { text: '等待买家签收', color: '#333' },
    ]
  },
  41: {
    code: 41,
    text: '补发详情',
    conditions: [],
    descriptions: [
      { text: '买家发起，', color: '#333' },
      { text: '补发', color: '#EA5750' },
      { text: '售后申请', color: '#333' },
    ],
    operations: [
      { text: '拒绝补发', func: 'handleToReject', className: 'danger plain', afterViewCode: 99 },
      { text: '同意补发货', func: 'handleRefund', className: 'primary', afterViewCode: 42 },
    ],
    rejectBtns : [
      { text: '取消', func: 'handleBack', className: 'primary plain' },
      { text: '保存', func: 'handleSubmit', className: 'primary' },
    ]
  },
  42: {
    code: 42,
    text: '补发详情',
    conditions: [],
    descriptions: [
      { text: '商家同意补发，', color: '#333' },
      { text: '待发货', color: '#EA5750' },
    ],
    operations: [
      { text: '确认发货', func: 'handleToDelivery', className: 'primary', afterViewCode: 43 },
    ],
    deliveryBtns : [
      { text: '取消', func: 'handleBack', className: 'primary plain' },
      { text: '确认发货', func: 'handleSubmit', className: 'primary' },
    ]
  },
  43: {
    code: 43,
    text: '补发详情',
    conditions: [],
    descriptions: [
      { text: '等待买家签收', color: '#333' },
    ]
  },
}